package com.mmd.admin.model.pojo.request.crm;


import com.mmd.base.annotation.MobileValid;
import com.mmd.base.annotation.valid.group.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("轮播图新增编辑参数")
public class CrmCustomerAddOrEditParam {

    @ApiModelProperty("id")
    private Long id=0L;

    @ApiModelProperty(value = "客服名称")
    @NotBlank(message = "客服名称不能为空", groups = {ValidGroup.Insert.class,ValidGroup.Update.class})
    private String name;

    @ApiModelProperty(value = "客服账号(手机号)")
    @MobileValid(message = "客服账号不能为空 手机号",groups = {ValidGroup.Insert.class,ValidGroup.Update.class})
    private String userName;

    @ApiModelProperty(value = "客服头像")
    @NotBlank(message = "客服头像不能为空", groups = {ValidGroup.Insert.class,ValidGroup.Update.class})
    private String photo;

}
